import request from '@/utils/request'
export function uploadImg(file) {
  const formData = new FormData()
  formData.append('files', file)
  return request({
    url: '/upload/uploadFile',
    method: 'POST',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}